package handler

import (
	"ecommerce-customer-support-chat/internal/dao"
	"ecommerce-customer-support-chat/internal/model"
	"github.com/gin-gonic/gin"
)

func UserList(c *gin.Context) {
	var user []model.Users
	dao.GetListByFields(&model.Users{Id: uint64(c.GetUint("id"))}, &user)
	c.JSON(200, gin.H{
		"code": 200,
		"msg":  "客服列表展示成功",
		"data": user,
	})
}
